import { IContext, IParam } from '@/core';
import { PropType } from 'vue';

export const autoCompleteProps = {
	name: {
		type: String,
	},
	value: {
		type: String,
	},
	data: {
		type: Object as PropType<IParam>,
	},
	placeholder: {
		type: String,
	},
	context: {
		type: Object as PropType<IContext>,
	},
	viewParams: {
		type: Object as PropType<IParam>,
	},
	localContext: {
		type: Object as PropType<IParam>,
	},
	localParam: {
		type: Object as PropType<IParam>,
	},
	deMajorField: {
		type: String,
		default: 'srfmajortext',
	},
	deKeyField: {
		type: String,
		default: 'srfkey',
	},
	acParams: {
		type: Object as PropType<IParam>,
	},
	sort: {
		type: String,
	},
	showButton: {
		type: Boolean,
		default: true,
	},
	disabled: {
		type: Boolean,
		default: false,
	},
	readOnly: {
		type: Boolean,
		default: false,
	},
	dataItems: {
		type: Array,
	},
	deCodeName: {
		type: String,
	},
};
